import { createRouter, createWebHistory } from 'vue-router';
import HomePage from './components/HomePage.vue';
import SubPage from './components/SubPage.vue';

const routes = [
  { path: '/', name: 'Home', component: HomePage },
  { path: '/sub/:id', name: 'SubPage', component: SubPage },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;